package com.sysd.mail.send;

import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * project: mail
 *
 * @author bsh
 * @description MessageHandler
 * @dataTime 2023/10/26 10:22
 * @company 丽水信阳软件科技有限公司
 */
public class MessageHandler extends ChannelInboundHandlerAdapter {
    private Channel channel;
    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        super.channelActive(ctx);
        this.channel = ctx.channel();
        channel.writeAndFlush("你好");
    }
}
